
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(74, 85, 104, 0.1);
    text-align: center;
    flex-shrink: 0;
}

.header h1 {
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
}

.logo-placeholder {
    height: 60px;
    width: 500px;
    max-width: 100%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0 auto;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 0;
}

.register-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.welcome-section {
    text-align: center;
    margin-bottom: 24px;
}

.avatar-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 16px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #718096;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

.form-input.error {
    border-color: #e53e3e;
    background: #fef5f5;
}

.form-input.success {
    border-color: #38a169;
    background: #f0fff4;
}

.error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.success-message {
    color: #38a169;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.password-strength {
    margin-top: 8px;
    font-size: 12px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 4px 0;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak .strength-fill {
    background: #e53e3e;
    width: 25%;
}

.strength-fair .strength-fill {
    background: #ed8936;
    width: 50%;
}

.strength-good .strength-fill {
    background: #38a169;
    width: 75%;
}

.strength-strong .strength-fill {
    background: #48bb78;
    width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.register-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.register-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.register-button:active {
    transform: translateY(0);
}

.register-button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #a0aec0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 16px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #718096;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.footer {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 15px;
    text-align: center;
    color: #718096;
    font-size: 14px;
    border-top: 1px solid rgba(74, 85, 104, 0.1);
    flex-shrink: 0;
}

.features-hint {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin-top: 20px;
    text-align: center;
}

.features-hint h4 {
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.features-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: #718096;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 18px;
    }

    .logo-placeholder {
        height: 50px;
        font-size: 14px;
    }

    .register-container {
        padding: 20px;
        margin: 15px;
        max-height: 85vh;
    }

    .welcome-title {
        font-size: 20px;
    }

    .avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .features-list {
        flex-direction: column;
        gap: 6px;
    }

    .main-container {
        padding: 15px;
    }
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .register-button {
    background: #a0aec0;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
